// components/person-card2/person-card2.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
     
  },
  inp2:function(){},

  /**
   * 组件的初始数据
   */
  data: {
    title:"中国机长",
    mov:[]
  },

  /**
   * 组件的方法列表 
   */
  methods: {
    btn2(){
      wx.request({
        url: "http://localhost:8000/search/movies?q=" + this.data.title,
        
        header: {
          'content-type': 'application/json'
        },
        success: res => {
          const mov = res.data
          console.log(res.data)
           this.setData({
             mov,
             
           })
        this.triggerEvent("changCount",mov)
              
        }
        
      })
      
    }
  }
})
